package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.CarBean;
import com.project.bean.OrderBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IOrderMapper extends BaseMapper<OrderBean> {
    /**
     * 添加订单明细
     * @param orderId 订单id
     * @param carList 购物车集合
     */
    public void addOrderInfo(@Param("orderId") int orderId,@Param("carList") List<CarBean>carList);



    public OrderBean findById(int id);


}
